﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace ClasesLibreria.dao
{
    public static class DAORol
    {
        public static SqlDataReader queryRol(string connectionString)
            {
                SqlConnection conn = new SqlConnection(connectionString);
                conn.Open();
                SqlCommand com = new SqlCommand("select * from Rol Order by IdRol");
                com.Connection = conn;
                SqlDataReader dr;
                dr = com.ExecuteReader();

                return dr;
            }
    
    }
}
